package com.msw.design.observer;

import java.util.Observable;
import java.util.Observer;

/**
 * 观察者: 当被观察者发生改变时候,通知观察者
 *
 * <p/>
 * Created by hadoop on 16-2-17.
 */
public class MyObserver implements Observer{

    @Override
    public void update(Observable o, Object arg) {
        System.out.println("changed take ........");
    }
}
